package com.benben.springSecurity.weiwei;
//各个类型数据范围：
//byte:-2^7 ~ 2^7-1
//short:-2^31 ~ 2^31-1
//有符号int：-2^31 ~ 2^31-1
//无符号int：0~2^32-1
//long：-2^63 ~ 2^63-1
//统计位数是偶数的数字总和
public class WeishuIsOushu {
    public static int count(int n, int m){
        int result = 0;
        for(int i=n;i<=m;i++){
            int byteSum = queryBite(i);
            if(byteSum%2==0){
                result++;
            }
        }
        return result;
    }
    public static int queryBite(int number){
        return (number+"").length();
    }

    public static void main(String[] args) {
        int N = 105;
        int M = 120;
        System.out.println(count(N,M));
        System.out.println(Math.pow(2,31)-Math.pow(10,9));
    }
}
